package com.fypg.module.blooddonation.api.dto.bloodDonationSchedule;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 献血排班时间段信息
 * @author 盘古
 */
@Data
@Schema(description = "献血排班时间段信息")
public class BloodDonationScheduleList {

    /**
     * 开始时间段
     * 格式: HH:mm
     */
    @Schema(
        description = "开始时间段",
        example = "09:00"
    )
    private String beginTime;

    /**
     * 结束时间段
     * 格式: HH:mm
     */
    @Schema(
        description = "结束时间段",
        example = "10:00"
    )
    private String endTime;

    /**
     * 设置预约人数
     * 该时间段最大可预约人数
     */
    @Schema(
            description = "设置预约人数",
        example = "10"
    )
    private String setNumber;

    /**
     * 可预约人数
     * 该时间段剩余可预约人数
     */
    @Schema(
            description = "可预约人数",
        example = "8"
    )
    private String bookingNumber;

    /**
     * 无参构造函数
     */
    public BloodDonationScheduleList() {
    }

    /**
     * 全参构造函数
     */
    public BloodDonationScheduleList(String beginTime, String endTime, String setNumber, String bookingNumber) {
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.setNumber = setNumber;
        this.bookingNumber = bookingNumber;
    }
}
